cmake_minimum_required (VERSION 2.8)

set(CMAKE_CXX_STANDARD 11)

# 交叉编译 --- 设置编译器和目标平台
set(CMAKE_CXX_COMPILER "arm-linux-g++")
set(CMAKE_C_COMPILER "arm-linux-gcc")

include_directories(.)
include_directories(../Client)
include_directories(../Common)

aux_source_directory(. DIR_SRCS)
add_executable(TestLogDemo ${DIR_SRCS})

# target_link_libraries(TestLogDemo  ${CMAKE_CURRENT_SOURCE_DIR}/../Client/libLogClientLib.a)
find_library(LOGCLIENTLIB NAMES LogClientLib PATHS ${CMAKE_CURRENT_SOURCE_DIR}/../Client/ NO_DEFAULT_PATH)
target_link_libraries(TestLogDemo ${LOGCLIENTLIB})
